import { IFeidaoAiNodejsComponent } from '@feidao/web/interfaces';

import render from '@feidao/web/atom/nodejs/render/render';

// import '@feidao/widgets/fd-w000009';

const tpl = `<fd-w000009 size=20 total={{=it}} key="page_no" show-first show-last show-total max-btn-num=4></fd-w000009>`;

export default function pagenation(fd: IFeidaoAiNodejsComponent, pname: string, total: number) {
	return render(fd.data.node, total, tpl, pname);
}
